package widget;

import android.content.Context;
import android.view.WindowManager;

import com.qmuiteam.qmui.widget.popup.QMUIPopup;

import net.ck.hzq.R;

/**
 * by BF00233 on 2018/12/21.
 */
public class FillWidthPopup extends QMUIPopup {

    public FillWidthPopup(Context context) {
        super(context);
    }

    public FillWidthPopup(Context context, int preferredDirection) {
        super(context, preferredDirection);
    }

    @Override
    protected int getRootLayout() {
        return R.layout.popup_root_fill_width;
    }

    @Override
    protected void onShowConfig() {
        super.onShowConfig();
        mWindow.setWidth(WindowManager.LayoutParams.MATCH_PARENT);
        mWindow.setHeight(WindowManager.LayoutParams.WRAP_CONTENT);
    }
}
